package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: WangHongKun
 * @Date: 2022/9/22 16:58
 * @Email: 2028911483@qq.com
 * @Phone: 18683977706
 */

@Mapper
public interface DishFlavorMapper {

    void addDishFlavor(List<DishFlavor> flavors);


    void DeleteBatch(List<Long> ids);

    @Delete("delete from dish_flavor where dish_id =#{id}")
    void Delete(Long id);

    List<DishFlavor>  getById(Long id);


    List<DishFlavor>  getByDishId(Long dishId);
}
